<?php
namespace catchAdmin\permissions\model\search;

trait PortsConfigSearch
{
    public function searchPortNameAttr($query, $value, $data)
    {
        return $query->whereLike('port_name', $value);
    }

    public function searchPortCodeAttr($query, $value, $data)
    {
        return $query->whereLike('port_code', $value);
    }

}
